package com.chenjiagou.mapper;

import com.chenjiagou.pojo.Notification;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NotificationMapper {
        void insertUserNotification(@Param("userId") int userId, @Param("notificationId") int notificationId);

        //根据不同的userId查找相对应的通知
        List<Notification> findNotificationByUserId(int userId);
        List<Notification> findUnreadByUserId(int userId);
        void deleteNotificationById(int id);



        void publishNotification(@Param("flightId") int flightId,
                                 @Param("title") String title,
                                 @Param("content") String content);
}
